use serde::Deserialize;

use serde_json;

#[derive(Deserialize, Debug)]
struct User {
    fingerprint: String,
    location: String,
}

pub fn main() {
    // The type of `j` is `&[u8]`
    let j = b"
        {
            \"fingerprint\": \"0xF9BA143B95FF6D82\",
            \"location\": \"Menlo Park, CA\"
        }";
    // let u: User = serde_json::from_slice(j).unwrap();
    // println!("{:#?}", u);
    let v:serde_json::Value  = serde_json::from_slice(j).unwrap();
    // println!("{:#?}", v);
    let s:String=v["kkk"].to_string();
    let s2:String=String::from("hello");
    println!("{}{}{}",s,v["location"].as_str().unwrap(),s2);
}
